package org.lboot.flow.event.system;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.lboot.flow.module.audit.FlowAudit;
import org.lboot.flow.module.work.FlowWork;
import org.lboot.flow.module.work.params.FlowTaskParams;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * @author kindear
 * 流程自检事件
 */
@Slf4j
@Getter
public class FlowCheckEvent extends ApplicationEvent {
    FlowWork flowWork;

    FlowTaskParams taskParams;

    FlowAudit audit;

    public FlowCheckEvent(Object source, FlowWork flowWork, FlowAudit audit) {
        super(source);
        this.flowWork = flowWork;
        this.audit = audit;
    }

    public FlowCheckEvent(Object source, Clock clock) {
        super(source, clock);
    }
}
